namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0119 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysTaskHistory", "FromTaskHistoryId", c => c.Int());
            AddForeignKey("dbo.SysTaskHistory", "FromTaskHistoryId", "dbo.SysTaskHistory", "TaskHistoryId");
            CreateIndex("dbo.SysTaskHistory", "FromTaskHistoryId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.SysTaskHistory", new[] { "FromTaskHistoryId" });
            DropForeignKey("dbo.SysTaskHistory", "FromTaskHistoryId", "dbo.SysTaskHistory");
            DropColumn("dbo.SysTaskHistory", "FromTaskHistoryId");
        }
    }
}
